﻿using UnityEngine;

public class SoundObj
{
    public AudioSource audioSource;
    public int id;
}

public abstract class ISound
{
    public virtual bool Mute { get; set; }

    public virtual void OnSceneLoaded(){}

    public abstract AudioSource Play(Table_SoundTempItem soundTemp, AudioClip clip);
    
    public abstract void RePlay();

    public abstract void Stop();

    public abstract void Pause();

    public abstract void Update();

    public abstract bool IsPlaying(int id);

    public abstract void StopById(int id);
    
    public abstract void SetPitch(int id, float pitch);
}